package com.general.client.widgets.yesnomodal;

import net.customware.gwt.presenter.client.EventBus;
import net.customware.gwt.presenter.client.widget.WidgetPresenter;

import com.general.client.action.ActionHandler;
import com.google.gwt.event.shared.HandlerRegistration;

public class YesNoModalPresenterImpl extends
		WidgetPresenter<YesNoModalPresenter.Display> implements
		YesNoModalPresenter {

	public YesNoModalPresenterImpl(Display display, EventBus eventBus) {
		super(display, eventBus);
	}

	@Override
	public void show(boolean show) {
		display.show(show);
	}

	@Override
	protected void onBind() {
	}

	@Override
	protected void onUnbind() {
		// TODO Auto-generated method stub

	}

	@Override
	protected void onRevealDisplay() {
	}

	@Override
	public void setText(String text) {
		display.setText(text);
	}

	@Override
	public HandlerRegistration addYesActionHandler(ActionHandler handler) {
		return display.addYesActionHandler(handler);
	}

	@Override
	public HandlerRegistration addNoActionHandler(ActionHandler handler) {
		return display.addNoActionHandler(handler);
	}

}
